package cc.verywell.pureblock.msg.nfs.map;

import cc.verywell.pureblock.func.node.KeyShell;

/**
* 
* Copyright © 2019 TanYaqiu. All rights reserved.
* @author TanYaqiu 
* @address flat 601
* @date 2019年5月13日 上午12:03:46
*/
public interface FSmapHolding extends FSmap {
	void addHold(Object lock,KeyShell... keys);
	void removeHold(Object lock);
	int holdSize();
	long capacity();
	
	//TODO
//	default public byte[] holdPut(byte[] value) {
//		byte[] key = Sha.getInstance().hash(value);
//		if(holdPut(key,value)) {
//			return key;
//		}
//		return null;
//	}
//	
//	public byte holdPut(byte[] key, byte[] value);
//	public byte holdRemove(byte[] key);
	
}
